﻿using System.Runtime.Serialization;

namespace MyAMS.WebServer.Models
{
    /// <summary>
    /// 路由规则
    /// </summary>
    [DataContract]
    public class RoutingRole : BaseEntity
    {
        /// <summary>
        /// 获取或设置路由规则适应的区域
        /// </summary>
        [DataMember]
        public string Area { get; set; }

        /// <summary>
        /// 获取或设置用户定义的格式
        /// </summary>
        [DataMember]
        public string Uri { get; set; }

        /// <summary>
        /// 获取或设置对应的节点
        /// </summary>
        [DataMember]
        BaseNode BaseNode { get; set; }

        /// <summary>
        /// 获取或设置继承类型
        /// </summary>
        [DataMember]
        public RoutingRoleInheritance InheritanceType { get; set; }
    }
}
